
#include "player.h"
#include "../platform/time_util.h"
#include "../platform/helper.hpp"
CPlayer::CPlayer()
{

}
CPlayer::~CPlayer()
{

}

int CPlayer::LoginLoad(TaskToken& TT,Event& event)
{
	std::cout<<"on player login  :"<<event.cmd()<<std::endl;
	/*g_taskmng->*/
	tick_t t1 = get_tick_count();
	g_task_mng->CurrentTask()->_Yield(TT, 10000);
	std::cout<<"on player yield login  :"<<event.cmd()<<std::endl;
	tick_t t2 = get_tick_count();
	int value = safe_atoi("1223");

	return 0;
}
void CPlayer::LogOut(Event& event)
{
	return ;
}

int CPlayer::Report(Event& event)
{
	//	std::cout<<"on player login  :"<<event.cmd()<<std::endl;

	return 0;
}
